package ua.kpi.JavaTraning5.domain;

import java.util.List;

/**
 * This class is the basic form for all types of fish.
 *
 * @author Vitaliy Vasylenko <apa4i007@gmail.com>
 * @version 1.0
 * @since 2013-05-29
 */

public abstract class Fish {
    private int x;
    private int y;


    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    /**
     * The method performs multiplication of fish.
     *
     * @param fishes - A List fish for reproduction
     * @return List<Fish> - The List of multiply fish
     */

    public List<Fish> multiply(List<Fish> fishes) {
        return fishes;
    }

    /**
     * The method moves the fish at a given distance.
     *
     * @param grid - The grid where need to move fish
     * @param x    - how much to move along the x axis
     * @param y    - how much to move along the y axis
     */

    public void move(Grid grid, int x, int y) {
    }
}
